package org.yangjie.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yangjie.service.TestService;

@RestController
public class TestController {
	
	@Autowired
	private TestService testService;

	
	@RequestMapping({"/","/index"})
	public String index(){
		return testService.index();
	}
	
	@RequestMapping("/admin")
	public String admin(){
		return testService.admin();
	}
	
	@RequestMapping("/user")
	public String user(){
		return testService.user();
	}
	
}
